package com.recipe.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import groovy.lang.Lazy;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.w3c.dom.stylesheets.LinkStyle;

import java.io.Serializable;
import java.util.List;

/**
 * (Dish)表实体类
 *
 * @author makejava
 * @since 2024-06-24 11:11:16
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Dish implements Serializable {

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private String sourceFood;

    private Long labelid;

    private Long userid;

    private Integer isDeleted;

    private String dishComment;

    private String dishName;

    private String dishImage;


    @TableField(exist = false)
    List<DishStep> dishSteps;

    @TableField(exist = false)
    List<DishSource> dishSources;

    @Lazy
    @TableField(exist = false)
    private String labelName;


    @TableField(exist = false)
    private String nickName;

    @TableField(exist = false)
    private String username;

}

